﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using System.Xml.XPath;

namespace Facebook.Api
{
    public class FacebookObjectBase : IFacebookObject
    {
        public FacebookObjectBase(XElement content)
        {
            this.Init(content);
        }

        public FacebookObjectBase(IDictionary<String, Object> dict)
        {
            this.InnerDictionary = new Dictionary<String, Object>(dict);
        }

        public FacebookObjectBase()
        {
            this.InnerDictionary = new Dictionary<String, Object>();
        }

        public void Init(XElement content)
        {
            this.Content = new XDocument(content);
            this.InnerDictionary = new Dictionary<String, Object>();
        }

        public XDocument Content { get; private set; }
        public IDictionary<String, Object> InnerDictionary { get; private set; }
    }
}